﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace HYCreateDuct.FormDuct
{
	public partial class FormMessageBox : System.Windows.Forms.Form
	{
		public FormMessageBox(string strInfo)
		{
			this.InitializeComponent();
			base.Icon = Resource.YArchitechIcon;
			this.label1.Text = strInfo;
		}

		private void btnOk_Click(object sender, EventArgs e)
		{
			if (this.cbTishi.Checked)
			{
				this.tishi = false;
			}
			else
			{
				this.tishi = true;
			}
			this.bl = true;
			base.DialogResult = DialogResult.OK;
			base.Close();
		}

		private void FormMessageBox_FormClosing(object sender, FormClosingEventArgs e)
		{
			if (!this.bl)
			{
				base.DialogResult = DialogResult.Cancel;
			}
		}

		public bool tishi;

		private bool bl;
	}
}
